<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>展示信息</title>
    <!-- 新 Bootstrap4 核心 CSS 文件 -->
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/css/bootstrap.min.css">
</head>
<body>
    <table class="table table-dark table-hover">
        <thead>
            <th>用户ID</th>
            <th>用户名</th>
            <th>密码</th>
            <th>权限</th>
            <td>操作</td>
        </thead>
        <tbody>
            <tr th:each="user : ${userBeanList}">
                <td th:text="${user.id}"></td>
                <td th:text="${user.name}"></td>
                <td th:text="${user.password}"></td>
                <td th:text="${user.role}"></td>
                <td>
                    <a th:href = "@{/add}">新增</a>
                    <a th:href = "@{/updateUser+{id}(id=${user.id})}">修改</a>
                    <a th:href = "@{/deleteUser+{id}(id=${user.id})}">删除</a>
                </td>
            </tr>

        </tbody>
    </table>
</body>
</html>